<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>p3_边框与内间距</title>
    <style>
        .d2{
            width: 200px;
            height: 200px;
            background-color: pink;
            border: 5px solid magenta;
            padding-left: 50px;
             /*border-top: 8px dashed #00f;*/
           margin: 50px;
            box-sizing: border-box;
        }
        span{
            background-color: red;
        }

    </style>
</head>
<body>
       <div class="d1"></div>
       <div class="d2">内间距离测试</div>
       <hr>
       <span>span1</span></span><span class="s2">span2</span><span>span3</span>
</body>
</html>